.script-editor {
  .script-content {
    padding: 10px 0;
    text-align: center;
    position: relative;

    &:hover {
      button {
        display: inline-block;
      }
    }
  }

  .script-mask {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: @color-light-4;
    opacity: 0.9;
    margin: 10px 0;
    border-radius: 5px;
  }

  button {
    position: absolute;
    display: none;
    top: 20px;
    right: 20px;
  }

  .CodeMirror {
    height: 600px;
  }

  .btn-ctrl {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
  }
}

.CodeMirror pre.CodeMirror-placeholder {
  color: @color-light-6;
}
